package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商结算单对象 settle_sheet
 *
 * @author ruoyi
 * @date 2025-03-11
 */
public class SettleSheet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 单号 */
    @Excel(name = "单号")
    private String code;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private String supplierId;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalAmount;

    /** 已优惠金额 */
    private BigDecimal totalDiscountAmount;

    /** 起始日期 */
    @Excel(name = "起始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    /** 截止日期 */
    @Excel(name = "截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 创建人ID */
    private String createById;

    /** 修改人ID */
    private String updateById;

    /** 审核人 */
    @Excel(name = "审核人")
    private String approveBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 拒绝原因 */
    private String refuseReason;

    // 创建最早时间
    private Date createMinTime;

    // 创建最晚时间
    private Date createMaxTime;

    private String bcode;

    // 创建最早时间
    private Date approveMinTime;

    // 创建最晚时间
    private Date approveMaxTime;

    private String name;

    private BigDecimal noPayAmount;

    public BigDecimal getNoPayAmount() {
        return noPayAmount;
    }

    public void setNoPayAmount(BigDecimal noPayAmount) {
        this.noPayAmount = noPayAmount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateMinTime() {
        return createMinTime;
    }

    public void setCreateMinTime(Date createMinTime) {
        this.createMinTime = createMinTime;
    }

    public Date getCreateMaxTime() {
        return createMaxTime;
    }

    public void setCreateMaxTime(Date createMaxTime) {
        this.createMaxTime = createMaxTime;
    }

    public String getBcode() {
        return bcode;
    }

    public void setBcode(String bcode) {
        this.bcode = bcode;
    }

    public Date getApproveMinTime() {
        return approveMinTime;
    }

    public void setApproveMinTime(Date approveMinTime) {
        this.approveMinTime = approveMinTime;
    }

    public Date getApproveMaxTime() {
        return approveMaxTime;
    }

    public void setApproveMaxTime(Date approveMaxTime) {
        this.approveMaxTime = approveMaxTime;
    }

    /** 供应商结算单明细信息 */
    private List<SettleSheetDetail> settleSheetDetailList;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setSupplierId(String supplierId)
    {
        this.supplierId = supplierId;
    }

    public String getSupplierId()
    {
        return supplierId;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setTotalDiscountAmount(BigDecimal totalDiscountAmount)
    {
        this.totalDiscountAmount = totalDiscountAmount;
    }

    public BigDecimal getTotalDiscountAmount()
    {
        return totalDiscountAmount;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }
    public void setApproveBy(String approveBy)
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy()
    {
        return approveBy;
    }
    public void setApproveTime(Date approveTime)
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime()
    {
        return approveTime;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setRefuseReason(String refuseReason)
    {
        this.refuseReason = refuseReason;
    }

    public String getRefuseReason()
    {
        return refuseReason;
    }

    public List<SettleSheetDetail> getSettleSheetDetailList()
    {
        return settleSheetDetailList;
    }

    public void setSettleSheetDetailList(List<SettleSheetDetail> settleSheetDetailList)
    {
        this.settleSheetDetailList = settleSheetDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("supplierId", getSupplierId())
            .append("totalAmount", getTotalAmount())
            .append("totalDiscountAmount", getTotalDiscountAmount())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .append("approveBy", getApproveBy())
            .append("approveTime", getApproveTime())
            .append("status", getStatus())
            .append("refuseReason", getRefuseReason())
            .append("settleSheetDetailList", getSettleSheetDetailList())
            .toString();
    }
}
